package src;

import java.util.Arrays;

/**
 * @author dream
 * @date 2020/12/9 10:23
 */
public class Main {
    public static void main(String[] args) {
        int[] test = new int[]{5, 1, 6, 78, 21, 33, 45, 64, 85, 27, 98, 71};
        Heap heap = new Heap(test);
        heap.print();
        heap.heapDdescendingSort();
        System.out.println("-----------大顶堆排序--------");
        heap.print();

        System.out.println("—————————————————进阶 1—————————————————————");
        MergeArray mergeArray = new MergeArray();
        mergeArray.merge();
        System.out.println(Arrays.toString(mergeArray.getLocalArray()));
    }
}
